﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyLib.Cache;
using EasyLib.Extensions;

namespace EasyLibConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            SimpleCache.Insert("Test_Key", 
                () => new List<int> {1, 2, 3});
            Console.WriteLine(SimpleCache.IsInCache("Test_Key"));

            object data = SimpleCache.Get("Test_Key", () => new List<int> {1, 2, 3});
            ObjectDumper.Write(data);

            data = SimpleCache.Get("xxx", () => new List<int> {4, 5, 6});
            ObjectDumper.Write(data);

            Console.WriteLine(SimpleCache.Cache.Count);

            Console.WriteLine(1.In(1, 2, 3));
            Console.ReadKey();
        }
    }
}


